package cn.tedu.crm.permission.pojo.vo;

import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
public class MenuTreeVO {
    private Long id;
    private String name;
    private Long parentId;
    private List<MenuTreeVO> children;

    public static MenuTreeVO convertFrom(MenuTreeVO menuTreeVO) {
        MenuTreeVO vo = new MenuTreeVO();
        BeanUtils.copyProperties(menuTreeVO, vo);
        return vo;
    }
}
